package com.offcn.sellergoods.feign;

import com.offcn.entity.Result;
import com.offcn.sellergoods.pojo.Item;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("SELLERGOODS")
@RequestMapping("/item")
public interface ItemFeign {


    @RequestMapping("/status/{status}")
    Result<List<Item>> findByStatus(@PathVariable String status);

    @GetMapping("/{id}")
    public Result<Item> findById(@PathVariable Long id);


    @PostMapping("/deCount")
    public Result deCount(@RequestParam("username") String username);
}
